
const get=(url,data,method='GET')=>{
  return new Promise((resolve,reject)=>{
    wx.request({
      url: getApp().globalData.domain+url,
      data:data,
      method:method,
      success:resolve,
      fail:reject
    })
  });
}

module.exports = get


